import request from '@/utils/request'
// 地块添加
export const AddlandData = (params) => request.post('/land_info/add', params)
// 地块编辑
export const UpdatelandData = (params) => request.patch('/land_info/updateById', params)
// 添加时查询用户信息
export const getUserListApi = (baseId) => request.get(`/user_info/list?baseId=${baseId}`)
// 地块列表
export const getMaplandApi = (baseId, landId) => request.get(`/land_info/list?baseId=${baseId}&landId=${landId || ''}`)

// 地块农事
export function getAgrByLandId (params) {
  return request({
    url: '/land_info/getAgrByLandId',
    method: 'get',
    params
  })
}
